package com.irdstudio.efp.report.service.dao;

import com.irdstudio.efp.report.service.domain.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RptImageMissConfigDAO {

    int insertTemp(RptImageMissTemp temp);

    List<RptImageMissConfig> queryNeedPrdList();

    List<RptImageMissConfig> queryImgTypeList(RptImageMissConfig rptImageMissConfig);

    /**
     * 根据产品查询放款客户的数据
     * @param prdId
     * @return
     */
    List<RptImageMissAccLoan> queryAccloan(@Param("prdId") String prdId);

    List<RptImageMissAccLoan> queryRejectAccloan(@Param("prdId") String prdId);

    int queryAccLoanImageType(@Param("dataDate") String dataDate, @Param("billNo") String billNo, @Param("imgType") String imgType, @Param("dataSub") int dataSub);

    /**
     * 判断放款客户在影像明细表是否存在指定的文档类型明细数据
     * @param rptAccLoan
     * @param imgType 影像类型
     * @return
     */
    int checkImgTypeExist(@Param("rptAccLoan") RptImageMissAccLoan rptAccLoan, @Param("imgType") String imgType);


    /**
     * 判断放款客户在影像明细表是否存在指定的文档类型明细数据
     * @param rptAccLoan
     * @param imgType
     * @return
     */
    int checkRejectLoanImgTypeExist(@Param("rptAccLoan") RptImageMissAccLoan rptAccLoan, @Param("imgType") String imgType);

    List<RptImageMissPrdInfo> queryPrdInfoList();

    int queryCfca(@Param("billNo") String billNo);

    String queryGroupConcatImgName(@Param("list") List<String> list);
}